require("../css/course-details.less")
require("../fonts/iconfont.css")

document.ready(function () {
    //按钮设置点击事件,用于返回之前页面
    let backbtn = document.querySelector(".backbtn")
    backbtn.addEventListener("click", function () {
        window.history.back()
    })
    // //播放按钮设置点击事件
    // let p = document.querySelector(".video>p")
    // let i = document.querySelector(".video>p>i")
    // let span = document.querySelector(".video>p>span")
    // p.addEventListener("click", function () {
    //     let bool = i.className.includes("iconicon_play")
    //     if (bool) {
    //         i.classList.remove("iconicon_play")
    //         i.classList.add("iconzanting")
    //         span.textContent = ""
    //     }
    // })


    //训练按钮设置点击事件
    let playBtn = document.querySelector("#playBtn")
    playBtn.addEventListener("click", function () {
        this.href = "./video.html" + window.location.search
    })
    // window.$http.get("")
})